package com.mxf.code.state_factory.pojo;

import org.springframework.stereotype.Component;

/**
 * @version 1.0
 * @date 2021/6/9 21:52
 * 订单状态: 2
 */
@Component(OrderStateFactory.ORDER_STATUS + 2)
public class OrderStateFor2 extends OrderStateCommon{
    @Override
    public void handle(Order newOrder, Order oldOrder) {
        System.out.println("订单状态:2 处理逻辑==>");
        //保存日志
        super.buildOrderLog(newOrder);
    }
}